Skip to content

Instantly share code, notes, and snippets.

@jojopko
jojopko / readme.md
Created August 16, 2026 14:45
[ГАЙД] OpenWrt + olcRTC: стабильный интернет через LTE в условиях белых списков

OpenWrt + olcRTC + sing-box: стабильный интернет через LTE

Практический сетап для ситуации, когда проводного интернета нет, доступна только LTE-связь, обычные VPN/VLESS-конфигурации работают нестабильно, а нормальный доступ в интернет нужен сразу для нескольких устройств — в том числе для работы через корпоративные VPN.

Это не универсальная инструкция и не «правильная архитектура на все случаи жизни». Ниже описан конкретно мой сетап, который сейчас работает у меня и который можно использовать как отправную точку.

Поддержать можно:

  • BTC bc1q6r9tdctf2wjrhj03w0u8lrg3gs2m8fkvcv4953
  • USDT (TRC20) TK29wf2q2pBtm4rFDPkVqfBoNKdKR7qMXS
@AKCodez
AKCodez / claude-code-statusline-guide.md
Last active September 3, 2026 06:34
Claude Code Status Line - Complete Guide: all fields, config, ready-to-use scripts

Claude Code Status Line - Complete Guide: all fields, config, ready-to-use scripts

Claude Code Status Line — Complete Guide

A persistent, customizable bar at the bottom of Claude Code that shows real-time session data.

image
@MohamedElashri
MohamedElashri / Workaround.md
Last active September 3, 2026 06:30
[Prevent Colab from sleeping]

run the following code in the console and it will prevent you from disconnecting.

  1. Ctrl+ Shift + i to open inspector view .
  2. go to console.
function ClickConnect(){
    console.log("Working"); 
    document.querySelector("colab-toolbar-button#connect").click() 
}
setInterval(ClickConnect,60000)
@johnmoarr
johnmoarr / EfCoreExtensions.cs
Created April 7, 2025 21:10
EF Core keyed db context factory
#pragma warning disable EF1001 // Internal EF Core API usage. => Currently, theres no other solution to register a db context factory as a keyed service
/// <summary>
/// Extension methods for setting up Entity Framework related services in an <see cref="IServiceCollection" />.
/// </summary>
public static class EfCoreExtensions
{
/// <summary>
/// Registers an <see cref="IDbContextFactory{TContext}" /> as a keyed service in the <see cref="IServiceCollection" /> to create instances
/// of given <see cref="DbContext" /> type.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# Claude Code CLI Environment Variables
# This file lists all environment variables used in v2.1.202 with explanations
## Anthropic API & Authentication
ANTHROPIC_API_KEY - Primary API key for Anthropic's Claude API; used as an auth source (source "ANTHROPIC_API_KEY") when no OAuth token is configured
ANTHROPIC_AUTH_TOKEN - Alternative bearer token for Anthropic services; sent as Authorization: Bearer and takes priority over ANTHROPIC_API_KEY, also used with gateway mode
ANTHROPIC_BASE_URL - Custom base URL for the Anthropic API; overrides the default api.anthropic.com endpoint (a non-api.anthropic.com host marks the client as non-first-party)
ANTHROPIC_BETAS - Comma-separated list of beta feature headers appended (trimmed, non-empty) to the internal beta flags on API requests
ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for API requests, parsed as newline-separated "Key: Value" pairs
@sherrytp
sherrytp / Awesome_CS.md
Last active September 3, 2026 06:17
Awesome Quant resources

Awesome CS Courses Awesome

CS Course Lists other than ClassCentral[https://www.classcentral.com/]

Introduction

There is a lot of hidden treasure lying within university pages scattered across the internet. This list is an attempt to bring to light those awesome CS courses which make their high-quality material i.e. assignments, lectures, notes, readings & examinations available online for free.

Table of Contents

The "TokenTradingDApp" Investigation: A Journey Down the Malware Rabbit Hole

It started with a warning.

I was scrolling through my feed when I stumbled upon an article on dev.to by Anderson Contreira: Warning to developers: A new wave of technical test scams is targeting devs. The premise was chilling—attackers were posing as recruiters, sending developers "take-home assignments" that contained hidden malware.

Curiosity got the better of me. I wanted to see exactly how these scams worked. I didn't want to just read about it; I wanted to dissect it.

The Discovery

@guwidoe
guwidoe / GetLocalOneDrivePath.bas.vb
Last active September 3, 2026 06:07
VBA Function to get the local path of a OneDrive/SharePoint synchronized Microsoft Office file
'Attribute VB_Name = "OneDrivePathConversion"
'
' Cross-platform VBA Function to get the local path of OneDrive/SharePoint
' synchronized Microsoft Office files (Works on Windows and on macOS) and
' Cross-platform VBA Function to get the OneDrive/SharePoint Url path (link)
' from a local path of a locally synced folder (Works on Windows and on macOS)
'
' Author: Guido Witt-Dörring
' Created: 2022/07/01
' Updated: 2026/07/15
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active September 3, 2026 06:06
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line